package com.leozhang.app;

import com.spire.xls.Workbook;
import com.spire.xls.Worksheet;
import com.spire.xls.ExcelVersion;

/**
 * Hello world!
 *
 */
public class CreateExcel
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        Workbook workbook = new Workbook();
        Worksheet sheet = workbook.getWorksheets().get(0);
        sheet.getCellRange("A1").setText("Hello, Spire.XLS!");
        workbook.saveToFile("Example.xlsx", ExcelVersion.Version2016);
        System.out.println("Excel 文件已创建！");
    }
}
